package com.study.portal.pojo;

import com.study.portal.util.StringUtils;
import com.study.portal.util.StrutsUtil;

public class BbsType {
    /**开放**/
    public static final String STATUS_Y = "Y";
    /**未开放**/
    public static final String STATUS_N = "N";
    
    public String getName() {
        return this.typeName;
    }
    public String getUrl(){
        if(!StringUtils.isEmpty(link)){
            return link +"." + StrutsUtil.STRUTS_ACTION_EXTENSION+"?queryForm.bbsTypeId="+this.getId();
        }else{
            return null;
        }
    }
    
    private String link;
    private String target;
    
    private Integer id;// int
    private Integer pId;// int
    private String typeName;// varchar
    private String foot;// char
    private Integer order;// int
    private String status;// char
    
    public void setTarget(String target) {
        this.target = target;
    }
    
    public String getTarget() {
        return target;
    }
    public String getLink() {
        return link;
    }
    public void setLink(String link) {
        this.link = link;
    }
    public Integer getId() {
        return id;
    }
    public Integer getpId() {
        return pId;
    }
    public String getTypeName() {
        return typeName;
    }
    public String getFoot() {
        return foot;
    }
    public Integer getOrder() {
        return order;
    }
    public String getStatus() {
        return status;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public void setpId(Integer pId) {
        this.pId = pId;
    }
    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
    public void setFoot(String foot) {
        this.foot = foot;
    }
    public void setOrder(Integer order) {
        this.order = order;
    }
    public void setStatus(String status) {
        this.status = status;
    }
    
}
